﻿namespace HuaWei.BusinessRule
{
    using HuaWei.DAI;
    using HuaWei.DALFactory;
    using System;

    public class CBaseRule
    {
        public virtual IDataAccess GetDataAccess()
        {
            return CDALFactory.GetDALAccess();
        }

        public virtual IDataAccess GetDataAccess(string dbtype, string datasource, string dbname, string username, string password)
        {
            return CDALFactory.GetDALAccess(dbtype, datasource, dbname, username, password);
        }

        public virtual IDataAccess GetWCF(string wcfAddr)
        {
            return CDALFactory.GetDALAccess("WCF", wcfAddr, "", "", "");
        }
    }
}

